﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Happy.Domain
{
    /// <summary>
    /// 乐观并发异常。
    /// </summary>
    public sealed class OptimisticConcurrencyException : ApplicationException
    {
        /// <summary>
        /// 构造方法。
        /// </summary>
        public OptimisticConcurrencyException()
            : base(Resource.Messages.Error_OptimisticConcurrencyExceptionMessage)
        {

        }

        /// <summary>
        /// 构造方法。
        /// </summary>
        public OptimisticConcurrencyException(Exception innerException)
            : base(Resource.Messages.Error_OptimisticConcurrencyExceptionMessage, innerException)
        {

        }
    }
}
